<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
    <title>Vue示例</title>

</head>

<body>
<div id="app">
    <a v-bind:href="url">链接</a>
    <img v-bind:src="imgUrl"/>
    <!-- 缩写为 -->
    <a :href="url">链接</a>
    <img :src="imgUrl"/>
</div>
<script charset="utf-8" src="../js/vue.min.js" type="text/javascript"></script>
<script type="text/javascript">
    new Vue({
        el: '#app',
        data: {
            url: 'https://www.github.com',
            imgUrl: 'http://xxx.xxx.xx/img.png'
        }
    })
</script>
</body>

</html>
